{
  "properties" : { },
  "id" : "copy1724913690019d92695",
  "script" : null,
  "groupId" : "ebf0447965bd4a6fba9d8f9b1d37abe7",
  "name" : "绑定巡检范围",
  "createTime" : 1727071108530,
  "updateTime" : 1726306065485,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "bindBatch",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "\r\n{\"taskId\":\"1830528225462239234\",\"deviceIdList\":[\"D8279229554905540079\",\"D3336940152835154016\",\"D3661217238456564409\"]}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": true\n}",
  "description" : "",
  "requestBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  },
  "responseBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  }
}
================================

for (devideId in body.deviceIdList) {
    var entity = {
        "task_id": body.taskId,
        "device_id": devideId
    }
    db.table('ndmp_audit_range').primary('id',IdUtil.getSnowflakeNextId()).save(entity)
}
return true